﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XMK.Tadong.Model
{
    /// <summary>
    /// 日志
    /// </summary>
    public class XMKLogInfo
    {
        public long LogID
        {
            get;
            set;
        }

        public LogOperateType OperateType
        {
            get;
            set;
        }

        public string UserId
        {
            get;
            set;
        }

        public string UserName
        {
            get;
            set;
        }

        public string UserAccount
        {
            get;
            set;
        }

        public long DataId
        {
            get;
            set;
        }

        public string Keyword
        {
            get;
            set;
        }

        public string IP
        {
            get;
            set;
        }

        public string LogDesc
        {
            get;
            set;
        }

        public DateTime OperateTime
        {
            get;
            set;
        }
    }

    /// <summary>
    /// 日志操作类型
    /// </summary>
    public enum LogOperateType
    {
        /// <summary>
        /// 登录
        /// </summary>
        Login,

        /// <summary>
        /// 注销
        /// </summary>
        Logout,

        /// <summary>
        /// 浏览页面
        /// </summary>
        ScanPage,

        /// <summary>
        /// 添加数据
        /// </summary>
        Insert,

        /// <summary>
        /// 删除数据
        /// </summary>
        Delete,

        /// <summary>
        /// 更新数据
        /// </summary>
        Update,

        /// <summary>
        /// 搜索文档
        /// </summary>
        Search,

        /// <summary>
        /// 在线浏览文档
        /// </summary>
        ScanFile,

        /// <summary>
        /// 下载文档
        /// </summary>
        DownFile,

        /// <summary>
        /// 删除文档
        /// </summary>
        DeleteFile
    }

    
}
